<!DOCTYPE html>
<html style="height: 100%;">
	
	<head>	
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" href="css/amazeui.min.css">
		<link rel="stylesheet" type="text/css" href="css/style.css"/>
		<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
		<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
			
		<title>援助保障</title>
		<style>
	    .header {
	      text-align: center;
	    }
	    .header h1 {
	      font-size: 200%;
	      color: #333;
	      margin-top: 30px;
	    }
	    .header p {
	      font-size: 14px;
	    }
	  </style>
	</head>
	<body>
		<div class="login">		
			<div class="header">
			  <div class="am-g">
			    <h1 style="color: white;">援助保障</h1>
			  </div>
			</div>
		
			<div class="am-g">
			  <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
			    <hr>
			    <form action="/r/logService?method=login" method="post" class="am-form">
			      <label for="number" style="color: white;">帐号:</label>
			      <input type="number" name="useracc" id="useracc" value="" style="background: rgba(255, 255, 255, 0.1);border-radius: 4px;color:white;">
			      <br>
			      <label for="password" style="color: white;">密码:</label>
			      <input type="password" name="password" id="password" value="" style="background: rgba(255, 255, 255, 0.1);border-radius: 4px;color:white;">
			      <br>
			      <label for="remember-me" style="color: white;">
			        <input id="remember-me" type="checkbox">
			        	记住密码
			      </label>
			      <br>
			      <div class="am-cf">
			        <input type="submit" name="" value="登 录" class="am-btn am-btn-primary am-btn-sm am-fl" style="width: 100%;border-radius: 3px;">
			      </div>
			    </form>
			    <hr>
			  </div>
			</div>
		</div>
		
	</body>
	
	<script>
		function forgetPassword(){
			var value = document.getElementById("useracc").value;
			if((value != null) && (value != "")){
				$.ajax({
			        type: "post",
			        url: "/r/ForgetPassword?value="+value,
			        dataType: "json",
			        success: function (data, textStatus) {    	
			        	if(data[0] == "success"){
			        		alert("提交成功");
			        	}else{
			        		alert("账号不存在");
			        	}
			        },
			        error: function (XMLHttpRequest, textStatus, errorThrown) {
			        	
			        },
			        complete: function (XMLHttpRequest, textStatus) {
			            this; // 调用本次AJAX请求时传递的options参数
			        }
			   });	
			}			
		}
		
	</script>
	
	
</html>


